package ecole.infrastructure;


import java.util.LinkedList;

/**
 * Permet de creer l'école
 * 
 * @author LUTTIAU Hadrien
 */
public class Creation_Batiments {

	Batiment batest = new Batiment("est",3);
	Batiment batouest= new Batiment("ouest",2);

	public Creation_Batiments(){}

	public LinkedList<Batiment> create (){
		//Creation batiment Ouest
		SalleAmphi samphi=new SalleAmphi(300, "A1", 0);
		batouest.add_salle(samphi);
		
		SalleReunion sreu=new SalleReunion(100, "R1", 0);
		batouest.add_salle(sreu);

		for(int i=0;i<5;i++){
			SalleCours s = new SalleCours(50, "0"+String.valueOf(i+1), 0);
			batouest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			SalleTd s = new SalleTd(30, "0"+String.valueOf(i+1), 1);
			batouest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			SalleTpPortable s = new SalleTpPortable(30, "0"+String.valueOf(i+1), -1, true, true);
			batouest.add_salle(s);
		}
		for(int i=0;i<3;i++){
			SalleTpFixe s = new SalleTpFixe(30, "0"+String.valueOf(i+1), -1, true, true, "Win/Linux");
			batouest.add_salle(s);
		}

		//Creation batiment Est
		SalleAmphi samphi2=new SalleAmphi(300, "A2", 0);
		batest.add_salle(samphi2);

		for(int i=0;i<5;i++){
			SalleCours s = new SalleCours(50, "0"+String.valueOf(i+1), 0);
			batest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			SalleTd s = new SalleTd(40, "0"+String.valueOf(i+1), 1);
			batest.add_salle(s);
		}
		for(int i=0;i<9;i++){
			SalleTpPortable s = new SalleTpPortable(30, "0"+String.valueOf(i+1), -1, true, true);
			batest.add_salle(s);
		}
		for(int i=0;i<3;i++){
			SalleTpFixe s = new SalleTpFixe(30, "0"+String.valueOf(i+1), -1, true, true, "Win/Linux");
			batest.add_salle(s);
		}

		LinkedList<Batiment> ll = new LinkedList<Batiment>();
		ll.add(batouest);
		ll.add(batest);
		return ll;

	}
}
